package com.eorchis.module.preauthorizationregistration.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.preauthorizationregistration.domain.PreAuthorizationRegistration;
import com.eorchis.module.signupdept.domain.SignupDept;
import com.eorchis.module.user.domain.User;

import org.hibernate.validator.constraints.NotBlank;


/**
 * Title: PreAuthorizationRegistrationValidCommond<br>
 * Description: 个人报名预授权ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Administrator
 * @createDate 2015-01-06
 * @version $Revision$
 */
public class PreAuthorizationRegistrationValidCommond implements ICommond {
	
	private PreAuthorizationRegistration preAuthorizationRegistration;
	private String deptId;//部门id
	
	
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public PreAuthorizationRegistrationValidCommond(){
		preAuthorizationRegistration = new PreAuthorizationRegistration();
	}
	
	public PreAuthorizationRegistrationValidCommond(PreAuthorizationRegistration preAuthorizationRegistration){
		this.preAuthorizationRegistration = preAuthorizationRegistration;
	}

	public Serializable getEntityID() {
		return preAuthorizationRegistration.getId();
	}

	@Override
	public IBaseEntity toEntity() {
		return preAuthorizationRegistration;
	}

	/**
	 * 获取个人报名预授权ID
	 */	
	@NotBlank
	public String getId() {
		return preAuthorizationRegistration.getId();
	}
	/**
	 * 设置个人报名预授权ID
	 */		
	public void setId(String id) {
		preAuthorizationRegistration.setId(id);
	}
	public Integer getYear() {
		return preAuthorizationRegistration.getYear();
	}
	public void setYear(Integer year) {
		preAuthorizationRegistration.setYear(year);
	}
	public User getUser() {
		return preAuthorizationRegistration.getUser();
	}
	public void setUser(User user) {
		preAuthorizationRegistration.setUser(user);
	}
	/**
	 * 获取用户登陆ID
	 */	
	public String getLoginId() {
		return preAuthorizationRegistration.getLoginId();
	}
	/**
	 * 设置用户登陆ID
	 */		
	public void setLoginId(String loginId) {
		preAuthorizationRegistration.setLoginId(loginId);
	}
	public String getUserName() {
		return preAuthorizationRegistration.getUserName();
	}
	public void setUserName(String userName) {
		preAuthorizationRegistration.setUserName(userName);
	}
	public SignupDept getDepartment() {
		return preAuthorizationRegistration.getDepartment();
	}
	public void setDepartment(SignupDept department) {
		preAuthorizationRegistration.setDepartment(department);
	}
	
}
